﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Campus.Entities
{
    [Table("ObrasSociales")]
    public class ObraSocial
    {
        public int ObraSocialId
        {
            get;
            set;
        }
        
        [Required(ErrorMessage = "El {0} es requerido")]
        [StringLength(20, ErrorMessage = "El {0} no puede tener mas 20 caracteres")]
        public string Nombre
        {
            get;
            set;
        }
                
        [DisplayName("Teléfono")]
        [StringLength(20, ErrorMessage = "El {0} no puede tener mas 20 caracteres")]
        public String Telefono
        {
            get;
            set;
        }
    }
}
